.class public Lcom/xingbook/ui/ab;
.super Landroid/view/ViewGroup;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/view/View$OnClickListener;

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Lcom/xingbook/ui/ad;

.field private g:Lcom/xingbook/ui/ad;

.field private h:Lcom/xingbook/ui/ad;

.field private i:Landroid/graphics/Bitmap;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 2

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    const/16 v0, 0x78

    iput v0, p0, Lcom/xingbook/ui/ab;->b:I

    const v0, -0xcccccd

    iput v0, p0, Lcom/xingbook/ui/ab;->c:I

    const v0, -0xff6601

    iput v0, p0, Lcom/xingbook/ui/ab;->d:I

    const v0, 0x22999999

    iput v0, p0, Lcom/xingbook/ui/ab;->e:I

    invoke-virtual {p1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f020052

    invoke-static {v0, v1}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/ab;->i:Landroid/graphics/Bitmap;

    invoke-direct {p0, p1}, Lcom/xingbook/ui/ab;->a(Landroid/app/Activity;)V

    return-void
.end method

.method private a(Landroid/app/Activity;)V
    .locals 10

    const/4 v9, 0x0

    const/16 v8, 0x8

    const/4 v2, 0x1

    iget v0, p0, Lcom/xingbook/ui/ab;->c:I

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ab;->setBackgroundColor(I)V

    invoke-static {p1}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    invoke-static {p1}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v1

    invoke-static {p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v6

    iget v3, p0, Lcom/xingbook/ui/ab;->b:I

    int-to-float v3, v3

    mul-float/2addr v3, v0

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v7

    sub-int v3, v1, v7

    invoke-virtual {p0, v9, v3, v6, v1}, Lcom/xingbook/ui/ab;->layout(IIII)V

    new-instance v1, Lcom/xingbook/ui/ad;

    invoke-direct {v1, p1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const/high16 v3, 0x4238

    mul-float/2addr v0, v3

    iput v0, v1, Lcom/xingbook/ui/ad;->c:F

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const/4 v1, -0x1

    iput v1, v0, Lcom/xingbook/ui/ad;->b:I

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/ab;->i:Landroid/graphics/Bitmap;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const/16 v1, 0x30

    iput v1, v0, Lcom/xingbook/ui/ad;->v:I

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/ui/ab;->d:I

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const/high16 v1, 0x4120

    iput v1, v0, Lcom/xingbook/ui/ad;->j:F

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const/16 v1, 0x11

    iput v1, v0, Lcom/xingbook/ui/ad;->d:I

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    const v1, -0x777778

    move v3, v2

    move v4, v2

    move v5, v2

    invoke-virtual/range {v0 .. v5}, Lcom/xingbook/ui/ad;->a(IIIII)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iput v9, v0, Lcom/xingbook/ui/ad;->l:I

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/ui/ab;->e:I

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    div-int/lit8 v1, v6, 0x28

    div-int/lit8 v2, v7, 0x6

    div-int/lit8 v3, v6, 0x28

    mul-int/lit8 v3, v3, 0x13

    div-int/lit8 v4, v7, 0x6

    mul-int/lit8 v4, v4, 0x5

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v8}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ab;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    div-int/lit8 v1, v6, 0x28

    mul-int/lit8 v1, v1, 0xb

    div-int/lit8 v2, v7, 0x6

    div-int/lit8 v3, v6, 0x28

    mul-int/lit8 v3, v3, 0x1d

    div-int/lit8 v4, v7, 0x6

    mul-int/lit8 v4, v4, 0x5

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v8}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ab;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    div-int/lit8 v1, v6, 0x28

    mul-int/lit8 v1, v1, 0x15

    div-int/lit8 v2, v7, 0x6

    div-int/lit8 v3, v6, 0x28

    mul-int/lit8 v3, v3, 0x27

    div-int/lit8 v4, v7, 0x6

    mul-int/lit8 v4, v4, 0x5

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v8}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ab;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/ab;->a:Landroid/view/View$OnClickListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ab;->a:Landroid/view/View$OnClickListener;

    invoke-interface {v0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V

    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 0

    return-void
.end method

.method public setChildVisibility(Lcom/xingbook/ui/ac;)V
    .locals 5

    const/4 v3, 0x0

    const/16 v2, 0x8

    const/4 v1, 0x0

    iget-object v4, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget v0, p1, Lcom/xingbook/ui/ac;->a:I

    if-lez v0, :cond_1

    move v0, v1

    :goto_0
    invoke-virtual {v4, v0}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget v4, p1, Lcom/xingbook/ui/ac;->a:I

    add-int/lit16 v4, v4, 0x3e8

    invoke-virtual {v0, v4}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget-object v4, p1, Lcom/xingbook/ui/ac;->d:Ljava/lang/String;

    iput-object v4, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v4, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    iget-boolean v0, p1, Lcom/xingbook/ui/ac;->g:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/ab;->i:Landroid/graphics/Bitmap;

    :goto_1
    iput-object v0, v4, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v4, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    iget v0, p1, Lcom/xingbook/ui/ac;->b:I

    if-lez v0, :cond_3

    move v0, v1

    :goto_2
    invoke-virtual {v4, v0}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    iget v4, p1, Lcom/xingbook/ui/ac;->b:I

    add-int/lit16 v4, v4, 0x3e8

    invoke-virtual {v0, v4}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    iget-object v4, p1, Lcom/xingbook/ui/ac;->e:Ljava/lang/String;

    iput-object v4, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v4, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    iget-boolean v0, p1, Lcom/xingbook/ui/ac;->h:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/ab;->i:Landroid/graphics/Bitmap;

    :goto_3
    iput-object v0, v4, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    iget v4, p1, Lcom/xingbook/ui/ac;->c:I

    if-lez v4, :cond_5

    :goto_4
    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    iget v1, p1, Lcom/xingbook/ui/ac;->c:I

    add-int/lit16 v1, v1, 0x3e8

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    iget-object v1, p1, Lcom/xingbook/ui/ac;->f:Ljava/lang/String;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    iget-boolean v1, p1, Lcom/xingbook/ui/ac;->i:Z

    if-eqz v1, :cond_0

    iget-object v3, p0, Lcom/xingbook/ui/ab;->i:Landroid/graphics/Bitmap;

    :cond_0
    iput-object v3, v0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/ui/ab;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v0, p0, Lcom/xingbook/ui/ab;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    return-void

    :cond_1
    move v0, v2

    goto :goto_0

    :cond_2
    move-object v0, v3

    goto :goto_1

    :cond_3
    move v0, v2

    goto :goto_2

    :cond_4
    move-object v0, v3

    goto :goto_3

    :cond_5
    move v1, v2

    goto :goto_4
.end method

.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/ab;->a:Landroid/view/View$OnClickListener;

    return-void
.end method
